function Loss   = v6_LossFunction(ParametersIn, RealMoments, MomentCovar)

SimMoments  = v6_Moments(ParametersIn);

Loss        = (RealMoments - SimMoments)' * inv(MomentCovar) * (RealMoments - SimMoments);

return
